package com.luo.testtouch;

import com.luo.testtouch.publicview.GUitl;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.MotionEvent;

/**
 * 测试事件传递规律
 * 
 * Activity
 * 
 * viewGroup
 * 
 * view
 *
 */
public class TouchActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.touch_layout);
        
    }

  
    @Override
    public boolean onTouchEvent(MotionEvent event)
    {
    	Log.i(GUitl.Log_TAG, "Activiy --onTouchEvent");
    	return super.onTouchEvent(event);
    }

    
    @Override
    public boolean dispatchTouchEvent(MotionEvent ev)
    {
    	
    	Log.i(GUitl.Log_TAG, "Activiy --dispatchTouchEvent--action=="+ev.getAction());
    	
    	return super.dispatchTouchEvent(ev);
    }
    

}
